﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DeepZoomPivotConstructor.ErrorAndLoggingInterfaces;

namespace t_TestingLibrary
{
    /// <summary>
    /// Sipmle logger that will emit data to the std out - so it shows up in the
    /// test log files.
    /// </summary>
    public class TestLogger : IErrorLogger
    {
        public void LogMessage(string ID, string message)
        {
            Console.WriteLine ("{0} - {1}", ID, message);
        }

        public void LogMessage(string ID, string message, Exception e)
        {
            Console.WriteLine ("{0} - {1} - {2} at {3}", ID, message, e.Message, e.StackTrace);
        }

        public void SetLogfileLocation(System.IO.DirectoryInfo newDirectory)
        {
            return;
        }
    }
}
